package com.ruoyi.project.manage.file.domain;

import com.ruoyi.project.manage.approveLog.domain.ApproveLog;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 项目文件对象 eb_project_file
 * 
 * @author fangkun
 * @date 2022-04-07
 */
public class ProjectFile extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long projectFileId;

    /** 文件类型 */
    @Excel(name = "文件类型")
    private Integer projectFileType;

    /** 项目ID */
    @Excel(name = "项目ID")
    private Long projectId;

    /** 项目事项ID */
    @Excel(name = "项目事项ID")
    private Long projectItemId;

    /** 审批类型ID */
    @Excel(name = "审批类型ID")
    private Long approveLogId;

    /** 文件名称 */
    @Excel(name = "文件名称")
    private String fileName;

    /** 原始文件名称 */
    @Excel(name = "原始文件名称")
    private String oriFileName;

    /** 文件路径 */
    @Excel(name = "文件路径")
    private String filePath;

    /** 状态（0正常 1暂停） */
    @Excel(name = "状态", readConverterExp = "0=正常,1=暂停")
    private String status;

    // 关联对象
    private ApproveLog approveLog;

    public ApproveLog getApproveLog() {
        return approveLog;
    }

    public void setApproveLog(ApproveLog approveLog) {
        this.approveLog = approveLog;
    }

    public void setProjectFileId(Long projectFileId)
    {
        this.projectFileId = projectFileId;
    }

    public Long getProjectFileId()
    {
        return projectFileId;
    }
    public void setProjectFileType(Integer projectFileType)
    {
        this.projectFileType = projectFileType;
    }

    public Integer getProjectFileType()
    {
        return projectFileType;
    }
    public void setProjectId(Long projectId)
    {
        this.projectId = projectId;
    }

    public Long getProjectId()
    {
        return projectId;
    }
    public void setProjectItemId(Long projectItemId)
    {
        this.projectItemId = projectItemId;
    }

    public Long getProjectItemId()
    {
        return projectItemId;
    }
    public void setApproveLogId(Long approveLogId)
    {
        this.approveLogId = approveLogId;
    }

    public Long getApproveLogId()
    {
        return approveLogId;
    }
    public void setFileName(String fileName)
    {
        this.fileName = fileName;
    }

    public String getFileName()
    {
        return fileName;
    }
    public void setOriFileName(String oriFileName)
    {
        this.oriFileName = oriFileName;
    }

    public String getOriFileName()
    {
        return oriFileName;
    }
    public void setFilePath(String filePath)
    {
        this.filePath = filePath;
    }

    public String getFilePath()
    {
        return filePath;
    }
    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("projectFileId", getProjectFileId())
            .append("projectFileType", getProjectFileType())
            .append("projectId", getProjectId())
            .append("projectItemId", getProjectItemId())
            .append("approveLogId", getApproveLogId())
            .append("fileName", getFileName())
            .append("oriFileName", getOriFileName())
            .append("filePath", getFilePath())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
